package com.jy.rhin.application.enums;

/**
 * @Description: 事件操作代码
 * @Author: lww
 * @Date: 2022/5/12 11:21
 */
public enum EventTypeCodeEnum implements BaseEnum {

    /**
     * C.3　事件类型代码
     */
    LOGIN("110122", "登录"),
    LOGOUT("110123", "退出"),
    PERSON_IDENTITY_FEED("IST-PR1", "居民信息提交"),
    PERSON_DEMOGRAPHICS_QUERY("IST-PR2", "居民信息查询"),
    PIX_QUERY("IST-PR3", "居民交叉索引"),
    PERSON_IDENTITY_SUBSCRIBE("IST-PR4", "居民信息订阅"),
    PERSON_IDENTITY_UPDATE_NOTIFICATION("IST-PR5", "居民信息变更通知"),
    PIX_UPDATE_NOTIFICATION("IST-PR6", "居民索引变更通知"),
    PIX_MERGE_NOTIFICATION("IST-PR7", "居民索引合并通知"),
    MEDICAL_INSTITUTION_IDENTITY_FEED("IST-MIR1", "医疗卫生机构信息提交"),
    MEDICAL_INSTITUTION_INFORMATION_QUERY("IST-MIR2", "医疗卫生机构信息查询"),
    MEDICAL_INSTITUTION_INFORMATION_UPDATE_SUBSCRIBE("IST-MIR3", "医疗卫生机构信息订阅"),
    MEDICAL_INSTITUTION_INFORMATION_UPDATE_NOTIFICATION("IST-MIR4", "医疗卫生机构信息变更通知"),
    MEDICAL_STAFF_IDENTITY_FEED("IST-MSR1", "医疗卫生人员信息提交"),
    MEDICAL_STAFF_INFORMATION_QUERY("IST-MSR2", "医疗卫生人员信息查询"),
    MEDICAL_STAFF_INFORMATION_SUBSCRIBE("IST-MSR3", "医疗卫生人员信息订阅"),
    MEDICAL_STAFF_INFORMATION_NOTIFY("IST-MSR4", "医疗卫生人员信息订阅"),
    MEDICAL_STAFF_INFORMATION_UPDATE_NOTIFICATION("IST-MSR4", "医疗卫生人员信息变更通知"),
    RETRIEVE_VALUE_SET("IST-TR1", "获取值集"),
    VALUE_SET_QUERY("IST-TR2", "值集查询"),
    RETRIEVE_CONCEPT_MAP("IST-TR3", "获取值集映射"),
    CONCEPT_MAP_QUERY("IST-TR4", "值集映射查询"),
    SUBSCRIBE("IST-BN1", "通知订阅"),
    UNSUBSCRIBE("IST-BN2", "取消订阅"),
    PAUSE_SUBSCRIBE("IST-BN3", "暂停订阅"),
    RESUME_SUBSCRIBE("IST-BN4", "恢复订阅"),
    PUBLISH_NOTIFICATION("IST-BN5", "发布通知"),
    NOTIFY("IST-BN6", "通知"),
    PROVIDER_AND_REGISTRY_DOCUMENT("IST-DS1", "提交健康档案"),
    REGISTER_DOCUMENT("IST-DS2", "注册健康档案"),
    UPDATE_DOCUMENT("IST-DS3", "更新健康档案文档元数据"),
    RETRIEVE_DOCUMENTS("IST-DS4", "检索健康档案"),
    DOCUMENT_STORED_QUERY("IST-DS5", "获取健康档案"),
    SUBSCRIBE_TO_DOCUMENTS("IST-DR3", "订阅健康档案"),
    DOCUMENT_UPDATE_NOTIFICATION("IST-DR4", "获取健康档案更新通知"),
    DOCUMENT_SUBSCRIBE("IST-DSP1", "文档订阅"),
    DOCUMENT_UNSUBSCRIBE("IST-DSP2", "取消文档订阅"),
    DOCUMENT_PAUSE_SUBSCRIBE("IST-DSP3", "暂停文档订阅"),
    DOCUMENT_RESUME_SUBSCRIBE("IST-DSP4", "恢复文档订阅"),
    DOCUMENT_RESUME_NOTIFY("IST-DSP6", "文档就绪通知"),


    RESERVATION_QUERY("IST-ARS8", "预约查询"),

    SCHEDULE_QUERY("IST-ARS5", "预约排班查询"),

    TWOWAY_REFERRAL_APPROVE_QUERY("IST-TRS9", "双向转诊回执查询"),
    TWOWAY_REFERRAL("IST-TRS1", "双向转诊申请"),
    TWOWAY_REFERRAL_APPROVE_ABORT("IST-TRS2", "取消双向转诊申请"),
    TWOWAY_REFERRAL_QUERY("IST-TRS3", "双向转诊查询"),
    TWOWAY_REFERRAL_APPROVE("IST-TRS4", "双向转诊回执"),
    TWOWAY_REFERRAL_APPROVE_NOTIFY("IST-TRS6", "双向转诊回执通知"),
    TWOWAY_REFERRAL_NOTIFY("IST-TRS7", "双向转诊申请通知"),
    TWOWAY_REFERRAL_APPROVE_ABORT_NOTIFY("IST-TRS8", "取消双向转诊申请通知"),
    RECORD_AUDIT_EVENT("IST-AT1", "记录审计事件");

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getName() {
        return name;
    }

    private String code;
    private String name;

    private EventTypeCodeEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }
    
}
